#include "WindCmdObj.h"
#include "CmdEnvironment.h"

CWindCmdObj::CWindCmdObj()
{
}

CWindCmdObj::~CWindCmdObj(void)
{
}

void CWindCmdObj::AddInfoHelp(WnString tag, WnString help)
{
	m_commandHelpInfo[CMD_INFO][tag] = help;
}

void CWindCmdObj::AddRunHelp(WnString tag, WnString help)
{
	m_commandHelpInfo[CMD_RUN][tag] = help;
}

bool CWindCmdObj::DoExcute(WnString group, WnString command)
{
	if(CMD_INFO == group)
	{
		return ExcuteInfoCommand(command);
	}
	else if(CMD_RUN == group)
	{
		return ExcuteRunCommand(command);
	}

	return false;
}
